#ifndef __WDS_PLAYER_H__
#define __WDS_PLAYER_H__

#include "wds_object.h"
//#include "CWeapon.h"

class CWeapon;

class CPlayer : public WDSObject 
{
	public:	

	CPlayer(float pLife,float pX,float pY,float pWidth,float pHeight,int pLimitX,int pLimitY,float pMoveSpeed);
	void setWeapon(CWeapon *pCWeapon);
	void setCursor(WDSObject *pPointToThisGuy);
		
	virtual void Tick(float dt);	
	virtual int getType() const { return OBJ_PLAYER; };		
	float getRemainingLife() const { return mLife; }		
	

protected:

	float getGoingDown() const;
	float getGoingUp() const;
	float getGoingLeft() const;	
	float getGoingRight() const;


	float mLife;
	bool mIsGoingDown;
	bool mIsGoingUp;
	bool mIsGoingLeft;
	bool mIsGoingRight;
	bool mIsFiring;	
	CWeapon *mCWeapon;
	WDSObject *mPointObject;
	float mSinceLastWeaponFireTime;
	void getKeyInput();
	void getMouseInput();
		
};

#endif
